package School;

import java.util.Scanner;

public class TestStudent {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		Student Stu[] = new Student[3];
		for (int i = 0; i < 3; i++) {
			System.out.println("please input the Student "+(i+1)+" name");
			String name = sc.nextLine();
			System.out.println("please input the Student "+(i+1)+" course");
			String course = sc.nextLine();
			Stu[i]=new Student(name,course);
		}
		sc.close();
		for (int i = 0; i < Stu.length; i++) {
			Stu[i].showStudent();
		}
		Stu[0].SetCourse("CSSE");
		Stu[0].showStudent();
		Stu[2].SetName("Louise Johnson" );
		System.out.println(Stu[2].GetName());
	}
}
